﻿@using Nop.Core.Domain.Catalog
@model Manufacturer
@{
    Layout = "~/Themes/CNet/Shared/_HomePage_Master.cshtml";
}
<script type="text/javascript">
    $(function () {
        //店铺推荐
        $("#myRecommend").click(function () {
            var shopId = $("#hdShopId").val();
            $.ajax({
                url: '/Shop/ShopRecommend',
                type: 'post',
                data: { shopId: shopId },
                dataType: 'json',
                success: function (data) {
                    //0→插入失败、1→推荐成功、2→已经推荐过了、3→未登录
                    if (data) {
                        if (data.msg == "0") {
                            alert("推荐失败，请稍后再试！");
                        } else if (data.msg == "1") {
                            alert("推荐成功");
                            //更新数字
                            $("#recommendCount").text(parseInt($("#recommendCount").text()) + 1);
                        } else if (data.msg == "2") {
                            alert("您已经推荐过了");
                        } else if (data.msg == "3") {
                            alert("请先登录再推荐");
                        }
                    }
                }
            });
        });
    });
</script>
<div class="shop_main">
    <input type="hidden" id="hdShopId" value="@ViewBag.shopId" />
    <div class="shop_attrs">
        <div class="info_all">
            <div class="metro_title_text">@Model.Name</div>
            <div class="clear">
            </div>
            <!--餐厅信息 -->
            <div class="metro_rectangle_narrow metro">
                <!-- 导航 -->
                <table style="margin-left: 12px; margin-top: 12px;">
                    <!-- comment_id:1343 img: -->
                    <tbody>
                        <tr>
                            <td class="info_site">@Model.Address
                            </td>
                        </tr>
                        <tr>
                            <td class="info_tel">@Model.Phone
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="metro_small_red metro" id="myRecommend" style="cursor: pointer;">
                <div style="left: 0px; bottom: -50px; margin: 5px; font-size: 24px; color: #fff;">
                    我推荐</div>
                <div class="recommend_button">
                </div>
            </div>
            <div class="metro_small metro">
                <div class="info_wantnum">
                    <span>
                        <img src="@Url.Content("~/themes/Cnet/Content/image/recommend_grey.png")"></span><span
                            class="info_tjs" id="recommendCount">@Model.RecommendCount</span><span class="info_txt">推荐</span><span><img src="@Url.Content("~/themes/Cnet/Content/image/like_grey.png")"></span></div>
                <div class="metro_text_normal">
                    总订单：@Model.OrderCount</div>
                <div class="metro_text_xx">
                    @for (int i = 0; i < Model.StarCount; i++)
                    {
                        <img src="@Url.Content("~/themes/Cnet/Content/image/metro_text_xx.jpg")" />
                    }
                </div>
            </div>
        </div>
        <div class="shop_pr_sp">
            <div class="shop_pr_sp_title">
                特别喜欢吃的</div>
            @Html.Action("ShopProducts", "Catalog", new { mfId = Model.Id })
            @*    <ul class="shop_pr_sp_sp">
     <li><img src="@Url.Content("~/themes/Cnet/Content/image/shop_pr_sp_bj.jpg")"></li>
     <li>金枪鱼纳豆油梨果饭金枪鱼纳</li>
     <li><b class="font05">￥15</b><span>123人成交</span></li>
    </ul>
    <ul class="shop_pr_sp_sp">
     <li><img src="@Url.Content("~/themes/Cnet/Content/image/shop_pr_sp_bj.jpg")"></li>
     <li>金枪鱼纳豆油梨果饭金枪鱼纳</li>
     <li><b class="font05">￥15</b><span>123人成交</span></li>
    </ul>
    <ul class="shop_pr_sp_sp">
     <li><img src="@Url.Content("~/themes/Cnet/Content/image/shop_pr_sp_bj.jpg")"></li>
     <li>金枪鱼纳豆油梨果饭金枪鱼纳</li>
     <li><b class="font05">￥15</b><span>123人成交</span></li>
    </ul>
    <ul class="shop_pr_sp_sp">
     <li><img src="@Url.Content("~/themes/Cnet/Content/image/shop_pr_sp_bj.jpg")"></li>
     <li>金枪鱼纳豆油梨果饭金枪鱼纳</li>
     <li><b class="font05">￥15</b><span>123人成交</span></li>
    </ul>
    <ul class="shop_pr_sp_sp">
     <li><img src="@Url.Content("~/themes/Cnet/Content/image/shop_pr_sp_bj.jpg")"></li>
     <li>金枪鱼纳豆油梨果饭金枪鱼纳</li>
     <li><b class="font05">￥15</b><span>123人成交</span></li>
    </ul>*@
        </div>
        @*<div class="shop_pr_sp">
            <div class="shop_pr_sp_title">
                特价优惠</div>
            <ul class="shop_pr_sp_sp">
                <li>
                    <img src="@Url.Content("~/themes/Cnet/Content/image/shop_pr_sp_bj.jpg")"></li>
                <li>金枪鱼纳豆油梨果饭金枪鱼纳</li>
                <li><b class="font05">￥15</b><span>123人成交</span></li>
            </ul>
            <ul class="shop_pr_sp_sp">
                <li>
                    <img src="@Url.Content("~/themes/Cnet/Content/image/shop_pr_sp_bj.jpg")"></li>
                <li>金枪鱼纳豆油梨果饭金枪鱼纳</li>
                <li><b class="font05">￥15</b><span>123人成交</span></li>
            </ul>
            <ul class="shop_pr_sp_sp">
                <li>
                    <img src="@Url.Content("~/themes/Cnet/Content/image/shop_pr_sp_bj.jpg")"></li>
                <li>金枪鱼纳豆油梨果饭金枪鱼纳</li>
                <li><b class="font05">￥15</b><span>123人成交</span></li>
            </ul>
            <ul class="shop_pr_sp_sp">
                <li>
                    <img src="@Url.Content("~/themes/Cnet/Content/image/shop_pr_sp_bj.jpg")"></li>
                <li>金枪鱼纳豆油梨果饭金枪鱼纳</li>
                <li><b class="font05">￥15</b><span>123人成交</span></li>
            </ul>
            <ul class="shop_pr_sp_sp">
                <li>
                    <img src="@Url.Content("~/themes/Cnet/Content/image/shop_pr_sp_bj.jpg")"></li>
                <li>金枪鱼纳豆油梨果饭金枪鱼纳</li>
                <li><b class="font05">￥15</b><span>123人成交</span></li>
            </ul>
        </div>
        <div class="info_all">
            <div class="comment_left">
                <div id="comment_write_area" style="display: none;">
                    <div class="metro" style="float: right; width: 564px;">
                        <div id="commentEditor" style="padding: 7px; position: relative; height: auto; width: 550px;
                            min-height: 250px;">
                            <div>
                                <div style="width: 548px; border-color: rgb(238, 238, 238);" class="ke-container ke-container-default">
                                    <div unselectable="on" class="ke-toolbar" style="display: none;">
                                    </div>
                                    <div class="ke-edit" style="display: block; height: 250px;">
                                        <iframe src="index_3.html" style="width: 100%; height: 250px;" class="ke-edit-iframe"
                                            hidefocus="true" frameborder="0"></iframe>
                                        <textarea style="width: 100%; height: 250px; display: none;" class="ke-edit-textarea"
                                            hidefocus="true"></textarea></div>
                                    <div class="ke-statusbar">
                                        <span style="visibility: hidden;" class="ke-inline-block ke-statusbar-center-icon">
                                        </span><span style="visibility: hidden;" class="ke-inline-block ke-statusbar-right-icon">
                                        </span>
                                    </div>
                                </div>
                                <textarea style="display: none;"></textarea></div>
                            <div style="position: absolute; top: 18px; left: -67px; width: 60px;">
                                <div class="toolbarItem">
                                    <p>
                                        高级模式</p>
                                </div>
                                <div class="toolbarItem">
                                    <img src="@Url.Content("~/themes/Cnet/Content/image/add-pic.png")" alt="插入图片"><p>
                                        插入图片</p>
                                </div>
                                <div style="display: none;" class="toolbarItem">
                                    <img src="@Url.Content("~/themes/Cnet/Content/image/layout.png")" alt="自动排版"><p>
                                        自动排版</p>
                                </div>
                            </div>
                            <div style="position: relative; min-height: 250px; height: auto; width: 548px; background-color: rgb(255, 255, 255);
                                border: 1px solid rgb(238, 238, 238); display: none;">
                                <div style="position: relative;">
                                </div>
                            </div>
                            <div style="float: right; padding-top: 7px; position: relative;">
                                <img src="@Url.Content("~/themes/Cnet/Content/image/submit1.png")"></div>
                            <div style="clear: both;">
                            </div>
                        </div>
                        <div class="comment_area_bottom" style="padding-left: 8px;">
                            <div>
                                <input checked="checked" id="c_recommend_check" type="checkbox">
                                <span style="color: rgb(204, 204, 204); font-size: 12px;">推荐这家餐厅</span>
                            </div>
                            <div>
                                <a class="comment_area_hide" href="#" onclick="$('#comment_write_area').fadeOut();return false;">
                                    收起</a>
                                <img class="comment_area_hide" src="@Url.Content("~/themes/Cnet/Content/image/delete_img.png")">
                            </div>
                        </div>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="clear">
                </div>
                <div scrollpagination="enabled" id="comments" style="visibility: visible;">
                    <div class="info_comment" id="comment_1343">
                        <div class="info_commenttou">
                            <div align="center">
                                <a href="http://pinpin.com/user/profile/673">
                                    <div class="user_avatar_border">
                                        <img src="@Url.Content("~/themes/Cnet/Content/image/sunzihan.jpg")"></div>
                                    <p>
                                        卢晓涵</p>
                                </a>
                            </div>
                        </div>
                        <div class="shop_wz">
                            <table style="height: 100%; width: 100%;">
                                <tbody>
                                    <tr>
                                        <td align="left" valign="top" style="float: left; margin: 15px 0 0 0;">
                                            <img src=""@Url.Content("~/themes/Cnet/Content/image/qut.jpg")"">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="textcontainer" valign="center">
                                            <div class="textcontent">
                                                朝阳公园周边但凡供应brunch的地方就肯定能火，反正此地对城 东时尚中人而言已经so不新鲜了，以至于周末brunch时段完全派克特。12点之前来，要么就别来。
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" valign="bottom">
                                            <img src="@Url.Content("~/themes/Cnet/Content/image/qut2.jpg")">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="">
                                            <img src="@Url.Content("~/themes/Cnet/Content/image/2013032614303645425_700_412_640.jpg")" width="370" height="216">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top" style="float: left; margin: 15px 0 0 0;">
                                            <img src="@Url.Content("~/themes/Cnet/Content/image/qut.jpg")">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="textcontainer" valign="center">
                                            <div class="textcontent">
                                                朝阳公园周边但凡供应brunch的地方就肯定能火，反正此地对城 东时尚中人而言已经so不新鲜了，以至于周末brunch时段完全派克特。12点之前来，要么就别来。
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" valign="bottom">
                                            <img src="@Url.Content("~/themes/Cnet/Content/image/qut2.jpg")">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="">
                                            <img src="@Url.Content("~/themes/Cnet/Content/image/2013032614303598817_449_600_640.jpg")" width="162" height="216">
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="clear">
                    </div>
                </div>
            </div>
            <div class="comment_right">
                <div class="comment_write_button metro">
                </div>
                <div class="metro_rectangle metro" style="cursor: pointer;">
                    <div class="comment_share_button">
                    </div>
                    <div class="info_sharetext">
                        <span>分享</span><p>
                            <a>7</a>次</p>
                    </div>
                    <div class="info_sharenum">
                    </div>
                </div>
            </div>
        </div>*@
    </div>
</div>
